home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
gs24src.zip
/
DEVS.MAK
< prev
next >
Wrap
Text File
|
1992-03-25
|
15KB
|
409 lines
# Copyright (C) 1989, 1992 Aladdin Enterprises. All rights reserved.
# Distributed by Free Software Foundation, Inc.
#
# This file is part of Ghostscript.
#
# Ghostscript is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
# to anyone for the consequences of using it or for whether it serves any
# particular purpose or works at all, unless he says so in writing. Refer
# to the Ghostscript General Public License for full details.
#
# Everyone is granted permission to copy, modify and redistribute
# Ghostscript, but only under the conditions described in the Ghostscript
# General Public License. A copy of this license is supposed to have been
# given to you along with Ghostscript so you can know your rights and
# responsibilities. It should be in a file named COPYING. Among other
# things, the copyright notice and this notice must be preserved on all
# copies.
# makefile for Ghostscript device drivers.
# -------------------------------- Catalog ------------------------------- #
# It is possible to build Ghostscript with an arbitrary collection of
# device drivers, although some drivers are supported only on a subset
# of the target platforms. The currently available drivers are:
# Displays:
# MS-DOS EGA and VGA:
# ega EGA (640x350, 16-color)
# vga VGA (640x480, 16-color)
# MS-DOS SuperVGA:
# ****** NOTE: these devices do not work with the Watcom (32-bit MS-DOS)
# ****** compiler or executable.
# + atiw ATI Wonder SuperVGA
# * mdb10 EIZO MDB-10 (1024 x 768)
# tseng SuperVGA using Tseng Labs ET3000/4000 chips
# tseng16 Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
# + tvga16 Trident SuperVGA in 800x600, 16-color mode (256K memory)
# vesa SuperVGA with VESA standard API
# MS-DOS other:
# bgi Borland Graphics Interface (CGA and Hercules)
# * pe Private Eye
# Unix and VMS:
# * sonyfb Sony Microsystems monochrome display [Sony only]
# * sunview SunView window system [SunOS only]
# x11 X Windows version 11, release >=3 [Unix and VMS only]
# Printers:
# bj10e Canon BubbleJet BJ10e
# * cdeskjet H-P DeskJet 500C
# + deskjet H-P DeskJet and DeskJet Plus
# * dfaxhigh DigiBoard, Inc.'s DigiFAX software format (high resolution)
# * dfaxlow DigiFAX low (normal) resolution
# djet500 H-P DeskJet 500
# * djet500c H-P DeskJet 500C
# epson Epson-compatible dot matrix printers (9- or 24-pin)
# * epsonc Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
# + laserjet H-P LaserJet
# * lbp8 Canon LBP-8II laser printer
# * ln03 DEC LN03 printer [Ultrix only?]
# + ljet2p H-P LaserJet IId/IIp/III* with TIFF compression
# + ljet3 H-P LaserJet III* with Delta Row compression
# * ljetplus H-P LaserJet Plus
# * nwp533 Sony Microsystems NWP533 laser printer [Sony only]
# paintjet H-P PaintJet color printer
# * r4081 Ricoh 4081 laser printer
# * trufax TruFax facsimile driver [Unix only]
# File formats and others:
# bit A "bit bucket" device for time benchmarking
# User-contributed drivers marked with * require hardware or software
# that is not available to Aladdin Enterprises. Please contact the
# original contributors, not Aladdin Enterprises, if you have questions.
# Contact information appears in the driver entry below.
#
# Drivers marked with a + are maintained by Aladdin Enterprises with
# the assistance of users, since Aladdin Enterprises doesn't have access to
# the hardware for these either.
# If you add drivers, it would be nice if you kept each list
# in alphabetical order.
# Each platform-specific makefile must contain a line of the form
# DEVICE_DEVS=<dev1>.dev ... <devn>.dev
# where dev1 ... devn are the devices to be included in the build.
# dev1 will be used as the default device.
# On MS-DOS platforms, this line must appear before the lines
# (!)include gs.mak
# (!)include devs.mak
# in the makefile; on Unix systems, the device definition line
# may appear anywhere in the makefile.
# ---------------------------- End of catalog ---------------------------- #
# If you want to add a new device driver, the examples below should be
# enough of a guide to the correct form for the makefile rules.
# All device drivers depend on the following:
GDEV=$(AK) $(gx_h) $(gxdevice_h)
###### ------------------- MS-DOS display devices ------------------- ######
# There are really only two drivers: an EGA/VGA driver (4 bit-planes,
# plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
### ----------------------- EGA and VGA displays ----------------------- ###
gdevegaa.$(OBJ): gdevegaa.asm
ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
ega.exe: $(ETEST) libc$(MM).tr
tlink /m /l $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
ega.$(OBJ): ega.c $(GDEV)
# The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
# or an empty string.
EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h)
$(CCC) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
# The EGA/VGA family includes: EGA, VGA, MDB-10, and the
# Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
ega.dev: $(EGAVGA)
$(SHP)gssetdev ega $(EGAVGA)
vga.dev: $(EGAVGA)
$(SHP)gssetdev vga $(EGAVGA)
mdb10.dev: $(EGAVGA)
$(SHP)gssetdev mdb10 $(EGAVGA)
tseng16.dev: $(EGAVGA)
$(SHP)gssetdev tseng16 $(EGAVGA)
tvga16.dev: $(EGAVGA)
$(SHP)gssetdev tvga16 $(EGAVGA)
### ------------------------- SuperVGA displays ------------------------ ###
SVGA=gdevsvga.$(OBJ) $(PCFBASM)
gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h)
$(CCC) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
# The SuperVGA family includes: ATI Wonder, Tseng ET3000/4000, and VESA.
atiw.dev: $(SVGA)
$(SHP)gssetdev atiw $(SVGA)
tseng.dev: $(SVGA)
$(SHP)gssetdev tseng $(SVGA)
vesa.dev: $(SVGA)
$(SHP)gssetdev vesa $(SVGA)
### ------------ The BGI (Borland Graphics Interface) device ----------- ###
# We should use an implicit rule for running bgiobj,
# but a bug in Borland's `make' utility makes this not work.
cga.$(OBJ): $(BGIDIR)\cga.bgi
$(BGIDIR)\bgiobj $(BGIDIR)\$&
egavga.$(OBJ): $(BGIDIR)\egavga.bgi
$(BGIDIR)\bgiobj $(BGIDIR)\$&
herc.$(OBJ): $(BGIDIR)\herc.bgi
$(BGIDIR)\bgiobj $(BGIDIR)\$&
# Include egavga.$(OBJ) for debugging only.
bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
bgi.dev: $(bgi_)
$(SHP)gssetdev bgi $(bgi_)
$(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
$(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
###### ------------------- The Private Eye display ------------------- ######
### Note: this driver was contributed by a user: ###
### please contact narf@media-lab.media.mit.edu if you have questions. ###
pe_=gdevpe.$(OBJ)
pe.dev: $(pe_)
$(SHP)gssetdev pe $(pe_)
gdevpe.$(OBJ): gdevpe.c $(GDEV)
###### --------------- Memory-buffered printer devices --------------- ######
PDEVH=$(GDEV) $(gxdevmem_h) $(gxclist_h) $(gdevprn_h)
gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
bj10e.dev: $(bj10e_)
$(SHP)gssetdev bj10e $(bj10e_)
gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
### -------------------------- The DigiFAX device ----------------------- ###
### This driver outputs images in a format suitable for use with ###
### DigiBoard, Inc.'s DigiFAX software. Use -sDEVICE=dfaxhigh for ###
### high resolution output, -sDEVICE=dfaxlow for normal output. ###
### Note: this driver was contributed by a user: please contact ###
### Rick Richardson (rick@digibd.com) if you have questions. ###
digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
dfaxhigh.dev: $(digifax_)
$(SHP)gssetdev dfaxhigh $(digifax_)
dfaxlow.dev: $(digifax_)
$(SHP)gssetdev dfaxlow $(digifax_)
gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
### These are essentially the same device.
HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
HPMONO=gdevdjet.$(OBJ) $(HPPCL)
gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
deskjet.dev: $(HPMONO)
$(SHP)gssetdev deskjet $(HPMONO)
djet500.dev: $(HPMONO)
$(SHP)gssetdev djet500 $(HPMONO)
laserjet.dev: $(HPMONO)
$(SHP)gssetdev laserjet $(HPMONO)
ljetplus.dev: $(HPMONO)
$(SHP)gssetdev ljetplus $(HPMONO)
### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
### IIIp, IIId, IIIsi, IId, and IIp.
ljet2p.dev: $(HPMONO)
$(SHP)gssetdev ljet2p $(HPMONO)
### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
### IIIp, IIId, IIIsi.
ljet3.dev: $(HPMONO)
$(SHP)gssetdev ljet3 $(HPMONO)
### ------------ The H-P DeskJet 500C color printer device -------------- ###
### Note: there are two different 500C drivers, both contributed by users.###
### If you have questions about the djet500c driver, ###
### please contact AKayser@et.tudelft.nl. ###
### If you have questions about the cdeskjet driver, ###
### please contact g.cameron@aberdeen.ac.uk. ###
cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
cdeskjet.dev: $(cdeskjet_)
$(SHP)gssetdev cdeskjet $(cdeskjet_)
gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
djet500c.dev: $(djet500c_)
$(SHP)gssetdev djet500c $(djet500c_)
gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
### ----------------- The generic Epson printer device ----------------- ###
epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
epson.dev: $(epson_)
$(SHP)gssetdev epson $(epson_)
gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
### -------------- The Epson LQ-2550 color printer device -------------- ###
### Note: this driver was contributed by users: please contact ###
### Dave St. Clair (dave@exlog.com) if you have questions. ###
epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
epsonc.dev: $(epsonc_)
$(SHP)gssetdev epsonc $(epsonc_)
gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
### ------------ The H-P PaintJet color printer device ----------------- ###
paintjet_=gdevpjet.$(OBJ) $(HPPCL)
paintjet.dev: $(paintjet_)
$(SHP)gssetdev paintjet $(paintjet_)
gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
### ----------------- The Canon LBP-8II printer device ----------------- ###
### Note: this driver was contributed by users: please contact ###
### Tom Quinn (trq@prg.oxford.ac.uk) if you have questions. ###
### Note that the standard paper size for this driver is the European ###
### A4 size, not the American 8.5" x 11" size. ###
lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
lbp8.dev: $(lbp8_)
$(SHP)gssetdev lbp8 $(lbp8_)
gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
### ----------------- The DEC LN03 printer device ---------------------- ###
### Note: this driver was contributed by users: please contact ###
### Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions. ###
### A more general sixel driver is available from ###
### Ian MacPhedran (macphed@dvinci.USask.CA). ###
ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
ln03.dev: $(ln03_)
$(SHP)gssetdev ln03 $(ln03_)
gdevln03.$(OBJ): gdevln03.c $(PDEVH)
### ------------- The Ricoh 4081 laser printer device ------------------ ###
### Note: this driver was contributed by users: ###
### please contact kdw@oasis.icl.co.uk if you have questions. ###
r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
r4081.dev: $(r4081_)
$(SHP)gssetdev r4081 $(r4081_)
gdev4081.$(OBJ): gdev4081.c $(PDEVH)
###### ------------------------ Sony devices ------------------------ ######
### Note: these drivers were contributed by users: please contact ###
### Mike Smolenski (mike@srava.sra.co.jp) if you have questions. ###
### ------------------- Sony NeWS frame buffer device ------------------ ###
sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
sonyfb.dev: $(sonyfb_)
$(SHP)gssetdev sonyfb $(sonyfb_)
gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
### -------------------- Sony NWP533 printer device -------------------- ###
nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
nwp533.dev: $(nwp533_)
$(SHP)gssetdev nwp533 $(nwp533_)
gdevn533.$(OBJ): gdevn533.c $(PDEVH)
###### --------------------- The SunView device --------------------- ######
sunview_=gdevsun.$(OBJ)
sunview.dev: $(sunview_)
$(SHP)gssetdev sunview $(sunview_)
$(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
### ----------------- The TruFax facsimile device ---------------------- ###
### Note: this driver was contributed by users: ###
### please contact nao@maestro.bellcore.com if you have questions. ###
### Note that the driver requires a file encode_l.o supplied by the ###
### makers of the TruFax product. ###
trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
trufax.dev: $(trufax_)
$(SHP)gssetdev trufax $(trufax_)
gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
###### ----------------------- The X11 device ----------------------- ######
# Note that this includes some extra libraries to support Ghostview.
# Xt and Xext are included because on SunOS, some routine in Xmu calls
# XtMalloc, and something in Xt calls something in Xext, and Sun's
# dynamic library scheme requires pulling in all 3 libraries.
# On other operating systems, only Xmu is needed.
# Aladdin Enterprises does not support Ghostview. For more information
# about Ghostview, contact Tim Theisen (ghostview@cs.wisc.edu).
x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
x11.dev: $(x11_)
$(SHP)gssetdev x11 $(x11_)
$(SHP)gsaddmod x11 -lib Xmu Xt Xext X11
# See the main makefile for the definition of XINCLUDE.
GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
gdevx.$(OBJ): gdevx.c $(GDEVX)
$(CCC) $(XINCLUDE) gdevx.c
gdevxini.$(OBJ): gdevxini.c $(GDEVX)
$(CCC) $(XINCLUDE) gdevxini.c
### ---------------------- The bit bucket device ----------------------- ###
bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
bit.dev: $(bit_)
$(SHP)gssetdev bit $(bit_)
gdevbit.$(OBJ): gdevbit.c $(PDEVH)